package com.cxb.java;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Vector;

/**
 * @Classname TestList
 * @Date 2023/8/23 20:44
 * @Created by Administrator
 * @Description TODO
 */
public class TestList {

    public static void main(String[] args) {

        List list = new ArrayList();
        list.add("cxb");
        list.add("cxb3");
        list.add("cxb2");
        System.out.println(list);

        List objects = new Vector();
        objects.add("cxb");
        objects.add("cxb3");
        objects.add("cxb2");
        System.out.println(objects);

        List<Object> objects1 = new LinkedList<>();
        objects1.add("cxb");
        objects1.add("cxb3");
        objects1.add("cxb2");
        System.out.println(objects1);
    }
}
